package top.chukongxiang.monitorservice.javafx.fxml.components;

import javafx.scene.control.Control;
import javafx.scene.control.IndexedCell;
import javafx.util.Callback;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;

import java.util.function.Function;

/**
 * @author 楚孔响
 * @version 1.0
 * @date 2023/10/26 18:25
 */
@RequiredArgsConstructor
public class PropertyCellFactory<R extends Control,T> implements Callback<R, IndexedCell<T>> {

    private final Function<T, String> convert;

    @Getter
    @Setter
    private boolean enableEmpty = false;

    @Override
    public IndexedCell<T> call(R param) {
        return null;
    }
}
